local PANEL={}


function PANEL:Init()
    self:SetMouseInputEnabled( true )
    self:SetKeyboardInputEnabled( true )
	self.OutlineColor = Color(0,0,0,255)
	self.Color = Color(57,56,57,245)
	self.Inside = false

end
 
function PANEL:Paint()
	surface.SetDrawColor(self.Color)
	surface.DrawRect(0,0,self:GetWide(),self:GetTall());
	surface.SetDrawColor(self.OutlineColor)
	self:DrawOutlinedRect()
	if self.item then
		draw.SimpleText(self.item.Name, "ScoreboardText", 10, 0)
	end
end
 
function PANEL:OnMousePressed()
end

function PANEL:OnCursorEntered( )
self.Inside = true
end

function PANEL:OnCursorExited( )
self.Inside = false
end

function PANEL:ItemTable(item)
	self.item = item

end
 
vgui.Register( "item_info", PANEL );